package com.banksoft.cps.dao;

import com.banksoft.cps.bean.Material;
import com.banksoft.cps.bean.query.MaterialQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2018/1/12.
 */
@Repository
public interface MaterialDao {

    List<Material> list(MaterialQuery query);

    long count(MaterialQuery query);

    void insert(Material bean);

    void update(Material bean);

    List<Material> listByIdList(List<String> idList);

    void delete(String[] ids);

    Material findById(String materialId);
}
